#!/usr/bin/env python3
# coding: utf-8

import redis

from config import config as CONFIG
from .session import session


class Application:

    def __init__(self, rules, *args, **kwargs):
        self.rules = rules if rules else []

        # config
        self.redis = redis.StrictRedis(**CONFIG.redis_options)
        self.session = session
